package com.ruoyi.web.controller.studyCase;

import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @author ctl
 * @date 2023-10-30
 */
@RestController
@RequestMapping("/pdf")
public class PdfConvertController {
    @ApiOperation("测试")
    @RequestMapping("/demo")
    public AjaxResult demo(){
        return AjaxResult.success("转换成功");
    }
    @ApiOperation("pdf转换接口")
    @RequestMapping("/uploadPdf")
    public AjaxResult uploadPdf( @RequestPart("file") MultipartFile[] files){
        return AjaxResult.success("转换成功");
    }

    @ApiOperation("文件下载")
    @PostMapping("/downloadFile")
    public void downloadFile(HttpServletResponse httpServletResponse){
       /* biz.download(entity,httpServletResponse);*/
    }
}
